	var count = 0;
	var count1 = 0;
	var repeat = 0;
	var repeat1 = 0;
	var stop = 0;
	var stop1 = 0;
	var newScrollTop = 0;
	var newScrollTop1 = 0;
	//获取实时时间
	function mytime() {
		var a = new Date();
		var b = a.toLocaleTimeString();
		var c = a.toLocaleDateString();
		document.getElementById("time").innerHTML = c + "&nbsp" + b;
	}
	
	// 控制单相电表移动
	function set1() {
		if (document.getElementById('roll').scrollTop == 0) {
			stop1++;
		}
		if (stop1 >= 100) {
			count1 += 1;
			let oldScrollTop = document.getElementById('roll').scrollTop;
			document.getElementById('roll').scrollTop = count1;
			let newScrollTop = document.getElementById('roll').scrollTop;
			if (oldScrollTop == newScrollTop) {
				repeat1++;
			}
			if (repeat1 >= 100) {
				document.getElementById('roll').scrollTop = 0;
				count1 = 0;
				repeat1 = 0;
			}
		}
	}
	
	// 控制三相电表移动
	function set() {
		if (document.getElementById('roll1').scrollTop == 0) {
			stop++;
		}
		if (stop >= 100) {
			count += 1;
			let oldScrollTop = document.getElementById('roll1').scrollTop;
			document.getElementById('roll1').scrollTop = count;
			let newScrollTop = document.getElementById('roll1').scrollTop;
			if (oldScrollTop == newScrollTop) {
				repeat++;
			}
			if (repeat >= 100) {
				document.getElementById('roll1').scrollTop = 0;
				count = 0;
				repeat = 0;
			}
		}
	}
	
	var s = setInterval(function() {
		mytime()
		set()
	}, 10);
	
	var s1 = setInterval(function() {
		set1()
	}, 50);
	
	window.onload = function() {
		var scoll = document.getElementById('roll1');
		scoll.onmouseenter = function() {
			clearInterval(s);
		}
		scoll.onmouseleave = function() {
			s = setInterval(function() {
				set()
			}, 10)
		}
		var scoll1 = document.getElementById('roll');
		scoll1.onmouseenter = function() {
			clearInterval(s1);
		}
		scoll1.onmouseleave = function() {
			s1 = setInterval(function() {
				set1()
			}, 50)
		}
	}
	
	$(function() {
		var a = $('.visualSssf_left a')
		for (var i = 0; i < a.length; i++) {
			a[i].index = i;
			a[i].onclick = function() {
				for (var i = 0; i < a.length; i++) {
					a[i].className = ''
				}
				this.className = 'active'
			}
		}
	
		var sfzcllH = $('.sfzcll_box').height()
		var sfzcllHtwo = sfzcllH - 2
		$('.sfzcll_box').css('line-height', sfzcllH + 'px')
		$('.sfzcll_smallBk>div').css('line-height', sfzcllHtwo + 'px')
	
		//删除加载动画
		$('#load').fadeOut(1000)
		setTimeout(function() {
			$('#load').remove()
		}, 1100);
	})
	